# from django.contrib import admin
# from django.contrib.auth.admin import UserAdmin
# # Register your models here.
# from users.models import User
#
#
# class UsersAdmin(UserAdmin):
#     def __init__(self, *args, **kwargs):
#         super(UsersAdmin, self).__init__(*args, **kwargs)
#         self.list_display += ('name',)  # 使用元组
#         self.add_fieldsets[0][1]['fields'] += ('name',)  # 使用元组
#         self.fieldsets[1][1]['fields'] += ('name',)  # 使用元组
#
# admin.site.register(User, UsersAdmin)
